package cn.tedu.rms.base.exception;

import cn.tedu.rms.base.response.StatusCode;
import lombok.Getter;

/* 自定义的业务层异常类 */
public class ServiceException extends RuntimeException{
    @Getter
    private StatusCode statusCode;

    //Alt+Insert一直回车 快捷生成构造方法
    public ServiceException(StatusCode statusCode) {
        this.statusCode = statusCode;
    }
}
